<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@include file="/common.jsp"%>
<!DOCTYPE html>
<html lang="zh">
<meta charset="utf-8">
<head></head>
<body class="white-bg">
	<div class="wrapper wrapper-content animated fadeInRight ibox-content">
		<form class="form-horizontal m" id="form-taxRegistration-edit">
			<input id="txId" name="txId" value="${taxRegistration.txId}" type="hidden">
			<input id="taskId" name="taskId" value="${taskId}" type="hidden">
			<input id="type" name="type" value="${type}" type="hidden">
			<div class="form-group">
				<div class="form-group">
					<label class="col-sm-3 control-label">纳税人：</label>
					<div class="col-sm-8">
						<input id="txOwner" name="txOwner" value="${taxRegistration.txOwner}" class="form-control" type="text" readonly>
					</div>
				</div>
				<label class="col-sm-3 control-label">单位名称：</label>
				<div class="col-sm-8">
					<input id="txCompany" name="txCompany" value="${taxRegistration.txCompany}" class="form-control" readonly type="text">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">经营地点：</label>
				<div class="col-sm-8">
					<input id="txCompanyAddress" name="txCompanyAddress" value="${taxRegistration.txCompanyAddress}" readonly class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">证件类型：</label>
				<div class="col-sm-8">
					<input id="txOwnerIdCardType" name="txOwnerIdCardType" value="${taxRegistration.txOwnerIdCardType}" readonly class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">证件号码：</label>
				<div class="col-sm-8">
					<input id="txOwnerIdCardNum" name="txOwnerIdCardNum" value="${taxRegistration.txOwnerIdCardNum}" readonly class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">登记类型：</label>
				<div class="col-sm-8">
					<select id="txType" name="txType" class="form-control" readonly>
						<option value="1" ${taxRegistration.txType ==1?'selected' :''}>开业税务登记</option>
						<option value="2" ${taxRegistration.txType ==2?'selected' :''}>变更税务登记</option>
						<option value="3" ${taxRegistration.txType ==3?'selected' :''}>停业复业税务登记</option>
						<option value="4" ${taxRegistration.txType ==4?'selected' :''}>外出经营报登记</option>
						<option value="5" ${taxRegistration.txType ==5?'selected' :''}>注销税务登记</option>
					</select>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">生产经营方式：</label>
				<div class="col-sm-8">
					<select id="txModel" name="txModel" class="form-control" readonly>
						<option value="1" ${taxRegistration.txModel ==1 ?'selected':''}>个人独立经营方式</option>
						<option value="2" ${taxRegistration.txModel==2?'selected':''}>合伙经营方式</option>
						<option value="3" ${taxRegistration.txModel==3 ?'selected':''}>有限责任公司</option>
					</select>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">注册资金：</label>
				<div class="col-sm-8">
					<input id="txRegisteredCapital" name="txRegisteredCapital" readonly value="${taxRegistration.txRegisteredCapital}" class="form-control"
						type="text">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">投资总额：</label>
				<div class="col-sm-8">
					<input id="txTotalInvestment" name="txTotalInvestment" value="${taxRegistration.txTotalInvestment}" readonly class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">生产经营期限：</label>
				<div class="col-sm-8">
					<input id="txEndTime" name="txEndTime" value="${taxRegistration.txEndTime}" class="form-control" readonly type="text">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">财务负责人：</label>
				<div class="col-sm-8">
					<input id="txFinancialManager" name="txFinancialManager" value="${taxRegistration.txFinancialManager}" readonly class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">联系电话：</label>
				<div class="col-sm-8">
					<input id="txPhone" name="txPhone" value="${taxRegistration.txPhone}" class="form-control" type="text" readonly>
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-3 control-label">&nbsp;</label>
				<div class="col-sm-8">
					<select id="flag" name="flag" class="form-control">
						<option value="true">通过</option>
						<option value="false">不通过</option>
					</select>
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-3 control-label">&nbsp;</label>
				<div class="col-sm-8">
					<a class="btn btn-primary btn-del" onclick="submitHandler()">
						<i class="fa fa-play"></i>
						提交审核
					</a>
				</div>
			</div>

		</form>
	</div>
	<script type="text/javascript">
		var prefix = "${ctx}/system/registration";
	
		function submitHandler() {
			if ($.validate.form()) {
				$.operate.save(prefix + "/complete", $('#form-taxRegistration-edit').serialize(), function(data) {
					if (data.code == 0) {
						alert("操作成功");
						window.location.href = '${ctx}/toDoTask/list/taxRegistration';
					}
				});
	
			}
		}
		zaneDate({
			elem : '#txEndTime',
			format : 'yyyy-MM-dd',
			showtime : true,
			begintime : '<fmt:formatDate pattern="yyyy-MM-dd"  value="${taxRegistration.txEndTime}" />'
		})
	</script>
</body>
</html>
